<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<script>
		var arr1=[1,2,4,'hello',66,88]
		function fn(arr,start,end){
			var arr2=[]
			for(var i=start;i<end;i++){
				arr2.push(arr[i])
			}
			console.log(arr2)
		}
		fn(arr1,3,4)
	</script>
</head>
<body>
	
</body>
</html>